package com.baixiaowen.disruptor.DisruptorHigh高准操作;

import com.lmax.disruptor.EventHandler;

public class Handler4 implements EventHandler<Trade> {
    @Override
    public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
        System.err.println("Handler4 : SET PRICE");
        event.setPrice(17.0);
        if (endOfBatch) {
            System.err.println("Handler4 is last one");
        }
    }
}
